# coding:utf-8

import os
import sys
import time
from PIL import Image
from Entry import MyImage
from Entry import FivePoint
import logging
import ctypes

'''
  尺寸：1920*1080
'''
timeFt = '%Y-%m-%d %H:%M:%S'

list = []


def testMyImage():
    myImage1 = MyImage(1, 2, 3)  # type: Entry.MyImage
    myImage2 = MyImage(2, 2, 3)  # type: Entry.MyImage
    myImage3 = MyImage(3, 2, 3)  # type: Entry.MyImage
    myImage4 = MyImage(4, 2, 3)  # type: Entry.MyImage
    myImage5 = MyImage(5, 2, 3)  # type: Entry.MyImage

    fivePoint = FivePoint(myImage1, myImage2, myImage3, myImage4, myImage5)  # type: Entry.FivePoint
    return fivePoint.list


def t1():
    str = '=== 自动刷御魂脚本结束，消耗体力 %s ，总共刷 %s 次御魂 ===' % ('123', '456')
    ctypes.windll.user32.MessageBoxA(0, str,
                                     u'御魂脚本'.encode('gb2312'), 0)


def t2():
    count = 1
    while count <= 10:
        print count
        count = count + 1


def t3():
    d = {'name': 'seer'}
    print d['name']


def t4():
    name = '山东'
    sql = 'select provinceCode from sys_province where provinceName like %%%s%%' % name
    print sql


def t5():
    str = '''
        hell ...{x}
    '''.format(x='seer')
    print str


def t6():
    val = 1
    try:
        val = 1 / 0
    except Exception, e:
        raise e


class testClass:
    def __init__(self, str, st):
        self.str = str,
        self.st = st


def t7():
    test = testClass('ddd', 'd')
    print type(test.str)

    # python 木有三目运算符，就这么着了
    print test.st if test.st == None else test.st[0]


def t8(x):
    if x:  # if x != None
        print x
    if not x:
        raise Exception('seer')  # 自定义异常信息


def t9(str):
    # string contains
    if '高速' in str:
        print True
    else:
        print False


def t10():
    # 字符串分割
    str = '123,456'
    print str.split(',')
    lng = str.split(',')[0]
    lat = str.split(',')[1]
    print lng
    print lat
    return lng, lat


def t11():
    # un。。。 转str的问题
    u = u'\u7ec8\u7aef\u72b6\u6001'
    print '%s' % u
    print u.encode('utf-8')


def t12():
    # 取模
    print 122 % 100
    print 1000 % 100


class OilException(Exception):
    pass


def t13():
    # 异常测试
    try:
        raise OilException('这是一个异常')
    except OilException as e:
        print e


def t14():
    # 读取文件
    filecon = open("D:\\CodeS\\YinYangShiFuZhu\\myweibo\\resource.json", 'r')
    # 读取全部
    # print filecon.read()

    # 逐行读取
    count = 1
    for line in filecon.readlines():
        print '%s -- %s ' % (count, line)
        count = count + 1

    filecon.close()


def t15():
    # 获取当前目录
    print sys.path[0]
    print sys.path[1]

    # paths = sys.path
    # for pa in paths:
    #     print pa


def t16():
    str = u"\u4e0d\u6562\u9884\u8a00\u7684\u9884\u8a00\u5bb6"
    print '%s' % str


def t17():
    '''
    测试包含
    :return:
    '''
    # list = ['123', '1456', '877']
    # print '123' in list
    # print 'seer' in list
    dict = {'seer': 'yuyanjia'}
    print dict.__contains__('seer')
    print dict.__contains__('dd')


def t18():
    '''
    一些时间转换
    :return:
    '''
    '''
    参考连接：http://ju.outofmemory.cn/entry/1078
    '''
    str = 'Thu Jan 11 08:58:03 +0800 2018'
    GMT_FORMAT = '%a %b %d %H:%M:%S +0800 %Y'
    # 字符串转时间
    timet = time.strptime(str, GMT_FORMAT)
    # 时间转字符串
    print time.strftime(timeFt, timet)


def t19():
    ss = (u'Thu Jan 11 11:53:04 +0800 2018',)
    print ss[0]


def t20():
    lists = ['123', '123']
    print lists
    lists = []
    print lists


def t21():
    strr = '''
    {'interval': 0, 'hasvisible': False, 'total_number': 309, 'previous_cursor': 0, 'next_cursor': 4194020731315944L, 'marks': [], 'statuses': [{'reposts_count': 1, 'mlevel': 0, 'truncated': False, 'text': u'\u81ea\u4ece\u90d1\u54e5\u8d70\u4e86\uff0c\u5927\u90e8\u5206\u65f6\u95f4\u90fd\u662f\u6211\u4e00\u4e2a\u4eba\u4e86[doge] \u200b', 'more_info_type': 0, 'content_auth': 0, 'visible': {'type': 0, 'list_id': 0}, 'in_reply_to_status_id': u'', 'bmiddle_pic': u'http://wx4.sinaimg.cn/bmiddle/6e22c677ly1fncz7bsjsbj21be0qojzp.jpg', 'original_pic': u'http://wx4.sinaimg.cn/large/6e22c677ly1fncz7bsjsbj21be0qojzp.jpg', 'id': 4195113297743124L, 'thumbnail_pic': u'http://wx4.sinaimg.cn/thumbnail/6e22c677ly1fncz7bsjsbj21be0qojzp.jpg', 'mblog_vip_type': 0, 'mid': u'4195113297743124', 'source': u'<a href="http://app.weibo.com/t/feed/47tA0S" rel="nofollow">OnePlus 3T</a>', 'attitudes_count': 0, 'in_reply_to_screen_name': u'', 'pic_urls': [{'thumbnail_pic': u'http://wx4.sinaimg.cn/thumbnail/6e22c677ly1fncz7bsjsbj21be0qojzp.jpg'}], 'created_at': u'Thu Jan 11 21:13:34 +0800 2018', 'positive_recom_flag': 0, 'annotations': [{'client_mblogid': u'94f3adcd-6a58-4ddb-b3bc-8533d33cd1ee'}, {'mapi_request': True}], 'in_reply_to_user_id': u'', 'darwin_tags': [], 'favorited': False, 'text_tag_tips': [], 'source_allowclick': 0, 'stickerID': u'0:1013738', 'pending_approval_count': 0, 'idstr': u'4195113297743124', 'comment_manage_info': {'comment_permission_type': 3, 'approval_comment_type': 0, 'comment_manage_button': 1}, 'user': {'bi_followers_count': 222, 'domain': u'dk980241', 'avatar_large': u'http://tvax2.sinaimg.cn/crop.54.56.967.967.180/6e22c677ly8fdo0myg0xbj20sg0sg1l0.jpg', 'cardid': u'star_005', 'verified_source': u'', 'ptype': 0, 'avatar_hd': u'http://tvax2.sinaimg.cn/crop.54.56.967.967.1024/6e22c677ly8fdo0myg0xbj20sg0sg1l0.jpg', 'cover_image_phone': u'http://ww2.sinaimg.cn/crop.0.0.640.640.640/a1d3feabjw1ecassls6b2j20hs0hsq50.jpg', 'statuses_count': 10743, 'id': 1847772791, 'verified_reason_url': u'', 'city': u'6', 'verified': True, 'friends_count': 656, 'verified_reason_modified': u'', 'credit_score': 80, 'insecurity': {'sexual_content': False}, 'block_app': 0, 'follow_me': False, 'has_service_tel': False, 'verified_reason': u'\u524d \u6dc4\u535a\u8e6d\u4e00\u8e6d\u4fe1\u606f\u6280\u672f\u6709\u9650\u516c\u53f8 \u7f51\u7edc\u5de5\u7a0b\u5e08', 'verified_type_ext': 0, 'location': u'\u5c71\u4e1c \u70df\u53f0', 'followers_count': 9669, 'verified_state': 0, 'verified_trade': u'1994', 'mbtype': 2, 'verified_source_url': u'', 'profile_url': u'dk980241', 'block_word': 0, 'avatargj_id': u'gj_vip_011', 'star': 0, 'description': u'\u4e2a\u4eba\u5e10\u53f7\uff0c\u53d1\u8868\u4e2a\u4eba\u8a00\u8bba\uff0c\u89c2\u70b9\u504f\u6fc0\uff0c\u770b\u4e0d\u60ef\u7684\u8bf7\u7ed5\u9053\uff0c\u6709\u55b7\u5fc5\u56de\u3002', 'verified_contact_email': u'', 'online_status': 0, 'mbrank': 1, 'verified_level': 3, 'profile_image_url': u'http://tvax2.sinaimg.cn/crop.54.56.967.967.50/6e22c677ly8fdo0myg0xbj20sg0sg1l0.jpg', 'idstr': u'1847772791', 'following': False, 'verified_contact_mobile': u'', 'allow_all_act_msg': False, 'screen_name': u'\u4e0d\u6562\u9884\u8a00\u7684\u9884\u8a00\u5bb6', 'vclub_member': 0, 'allow_all_comment': False, 'geo_enabled': True, 'class': 1, 'name': u'\u4e0d\u6562\u9884\u8a00\u7684\u9884\u8a00\u5bb6', 'lang': u'zh-cn', 'weihao': u'', 'remark': u'', 'favourites_count': 243, 'like': False, 'url': u'http://blog.sina.com/dkxiaoyi', 'province': u'37', 'created_at': u'Fri Nov 05 00:22:19 +0800 2010', 'verified_contact_name': u'', 'user_ability': 0, 'story_read_state': -1, 'verified_type': 0, 'gender': u'm', 'like_me': False, 'pagefriends_count': 11, 'urank': 38}, 'hot_weibo_tags': [], 'geo': None, 'isLongText': False, 'can_edit': False, 'gif_ids': u'', 'userType': 0, 'hasActionTypeCard': 0, 'is_paid': False, 'biz_feature': 4294967300L, 'source_type': 1, 'comments_count': 0, 'is_show_bulletin': 2, 'textLength': 44}, {'reposts_count': 0, 'mlevel': 0, 'truncated': False, 'text': u'\u6e23\u6d6a\u786e\u5b9e\u6e23\u6d6a\uff0c\u63a5\u53e3\u8c03\u7528\u4e0d\u4e86\u51e0\u6b21\u5c31\u8d85\u9650\u4e86\u3002mmp \u200b', 'more_info_type': 0, 'content_auth': 0, 'visible': {'type': 0, 'list_id': 0}, 'in_reply_to_status_id': u'', 'bmiddle_pic': u'http://wx4.sinaimg.cn/bmiddle/6e22c677ly1fncspeuzu1j20gv00wweb.jpg', 'original_pic': u'http://wx4.sinaimg.cn/large/6e22c677ly1fncspeuzu1j20gv00wweb.jpg', 'id': 4195056732574162L, 'thumbnail_pic': u'http://wx4.sinaimg.cn/thumbnail/6e22c677ly1fncspeuzu1j20gv00wweb.jpg', 'mblog_vip_type': 0, 'mid': u'4195056732574162', 'source': u'<a href="http://app.weibo.com/t/feed/6vtZb0" rel="nofollow">\u5fae\u535a weibo.com</a>', 'attitudes_count': 0, 'in_reply_to_screen_name': u'', 'in_reply_to_user_id': u'', 'created_at': u'Thu Jan 11 17:28:48 +0800 2018', 'positive_recom_flag': 0, 'pic_urls': [{'thumbnail_pic': u'http://wx4.sinaimg.cn/thumbnail/6e22c677ly1fncspeuzu1j20gv00wweb.jpg'}], 'darwin_tags': [], 'favorited': False, 'text_tag_tips': [], 'source_allowclick': 0, 'pending_approval_count': 0, 'idstr': u'4195056732574162', 'comment_manage_info': {'comment_permission_type': 3, 'approval_comment_type': 0, 'comment_manage_button': 1}, 'user': {'bi_followers_count': 222, 'domain': u'dk980241', 'avatar_large': u'http://tvax2.sinaimg.cn/crop.54.56.967.967.180/6e22c677ly8fdo0myg0xbj20sg0sg1l0.jpg', 'cardid': u'star_005', 'verified_source': u'', 'ptype': 0, 'avatar_hd': u'http://tvax2.sinaimg.cn/crop.54.56.967.967.1024/6e22c677ly8fdo0myg0xbj20sg0sg1l0.jpg', 'cover_image_phone': u'http://ww2.sinaimg.cn/crop.0.0.640.640.640/a1d3feabjw1ecassls6b2j20hs0hsq50.jpg', 'statuses_count': 10743, 'id': 1847772791, 'verified_reason_url': u'', 'city': u'6', 'verified': True, 'friends_count': 656, 'verified_reason_modified': u'', 'credit_score': 80, 'insecurity': {'sexual_content': False}, 'block_app': 0, 'follow_me': False, 'has_service_tel': False, 'verified_reason': u'\u524d \u6dc4\u535a\u8e6d\u4e00\u8e6d\u4fe1\u606f\u6280\u672f\u6709\u9650\u516c\u53f8 \u7f51\u7edc\u5de5\u7a0b\u5e08', 'verified_type_ext': 0, 'location': u'\u5c71\u4e1c \u70df\u53f0', 'followers_count': 9669, 'verified_state': 0, 'verified_trade': u'1994', 'mbtype': 2, 'verified_source_url': u'', 'profile_url': u'dk980241', 'block_word': 0, 'avatargj_id': u'gj_vip_011', 'star': 0, 'description': u'\u4e2a\u4eba\u5e10\u53f7\uff0c\u53d1\u8868\u4e2a\u4eba\u8a00\u8bba\uff0c\u89c2\u70b9\u504f\u6fc0\uff0c\u770b\u4e0d\u60ef\u7684\u8bf7\u7ed5\u9053\uff0c\u6709\u55b7\u5fc5\u56de\u3002', 'verified_contact_email': u'', 'online_status': 0, 'mbrank': 1, 'verified_level': 3, 'profile_image_url': u'http://tvax2.sinaimg.cn/crop.54.56.967.967.50/6e22c677ly8fdo0myg0xbj20sg0sg1l0.jpg', 'idstr': u'1847772791', 'following': False, 'verified_contact_mobile': u'', 'allow_all_act_msg': False, 'screen_name': u'\u4e0d\u6562\u9884\u8a00\u7684\u9884\u8a00\u5bb6', 'vclub_member': 0, 'allow_all_comment': False, 'geo_enabled': True, 'class': 1, 'name': u'\u4e0d\u6562\u9884\u8a00\u7684\u9884\u8a00\u5bb6', 'lang': u'zh-cn', 'weihao': u'', 'remark': u'', 'favourites_count': 243, 'like': False, 'url': u'http://blog.sina.com/dkxiaoyi', 'province': u'37', 'created_at': u'Fri Nov 05 00:22:19 +0800 2010', 'verified_contact_name': u'', 'user_ability': 0, 'story_read_state': -1, 'verified_type': 0, 'gender': u'm', 'like_me': False, 'pagefriends_count': 11, 'urank': 38}, 'hot_weibo_tags': [], 'geo': None, 'isLongText': False, 'can_edit': False, 'gif_ids': u'', 'userType': 0, 'hasActionTypeCard': 0, 'is_paid': False, 'biz_feature': 0, 'source_type': 1, 'comments_count': 0, 'is_show_bulletin': 2, 'textLength': 43}, {'reposts_count': 0, 'mlevel': 0, 'truncated': False, 'text': u'\u6025\u6025\u5982\u5f8b\u4ee4\uff01\u54c7~\u6211\u5728#\u9634\u9633\u5e08\u624b\u6e38#\u4e2d\u53ec\u5524\u51fa\u4e86\u5f3a\u5927\u7684\u5f0f\u795e\uff0c\u5feb\u4e00\u8d77\u6765\u73a9\u54e6~ http://t.cn/RMUUyQL \u200b', 'more_info_type': 0, 'content_auth': 0, 'visible': {'type': 0, 'list_id': 0}, 'in_reply_to_status_id': u'', 'bmiddle_pic': u'http://wx3.sinaimg.cn/bmiddle/6e22c677ly1fnbwtkczkzj20qo0f0goz.jpg', 'original_pic': u'http://wx3.sinaimg.cn/large/6e22c677ly1fnbwtkczkzj20qo0f0goz.jpg', 'id': 4194778968632472L, 'thumbnail_pic': u'http://wx3.sinaimg.cn/thumbnail/6e22c677ly1fnbwtkczkzj20qo0f0goz.jpg', 'mblog_vip_type': 0, 'mid': u'4194778968632472', 'source': u'<a href="http://app.weibo.com/t/feed/4Oao5U" rel="nofollow">\u9634\u9633\u5e08</a>', 'attitudes_count': 0, 'in_reply_to_screen_name': u'', 'pic_urls': [{'thumbnail_pic': u'http://wx3.sinaimg.cn/thumbnail/6e22c677ly1fnbwtkczkzj20qo0f0goz.jpg'}], 'created_at': u'Wed Jan 10 23:05:05 +0800 2018', 'positive_recom_flag': 0, 'annotations': [{'client_mblogid': u'3b77f46e-3c6a-451d-b5c4-3c7e26fb3ce4'}, {'mapi_request': True}], 'in_reply_to_user_id': u'', 'darwin_tags': [], 'favorited': False, 'text_tag_tips': [], 'source_allowclick': 0, 'biz_ids': [0], 'pending_approval_count': 0, 'idstr': u'4194778968632472', 'comment_manage_info': {'comment_permission_type': 3, 'approval_comment_type': 0, 'comment_manage_button': 1}, 'user': {'bi_followers_count': 222, 'domain': u'dk980241', 'avatar_large': u'http://tvax2.sinaimg.cn/crop.54.56.967.967.180/6e22c677ly8fdo0myg0xbj20sg0sg1l0.jpg', 'cardid': u'star_005', 'verified_source': u'', 'ptype': 0, 'avatar_hd': u'http://tvax2.sinaimg.cn/crop.54.56.967.967.1024/6e22c677ly8fdo0myg0xbj20sg0sg1l0.jpg', 'cover_image_phone': u'http://ww2.sinaimg.cn/crop.0.0.640.640.640/a1d3feabjw1ecassls6b2j20hs0hsq50.jpg', 'statuses_count': 10743, 'id': 1847772791, 'verified_reason_url': u'', 'city': u'6', 'verified': True, 'friends_count': 656, 'verified_reason_modified': u'', 'credit_score': 80, 'insecurity': {'sexual_content': False}, 'block_app': 0, 'follow_me': False, 'has_service_tel': False, 'verified_reason': u'\u524d \u6dc4\u535a\u8e6d\u4e00\u8e6d\u4fe1\u606f\u6280\u672f\u6709\u9650\u516c\u53f8 \u7f51\u7edc\u5de5\u7a0b\u5e08', 'verified_type_ext': 0, 'location': u'\u5c71\u4e1c \u70df\u53f0', 'followers_count': 9669, 'verified_state': 0, 'verified_trade': u'1994', 'mbtype': 2, 'verified_source_url': u'', 'profile_url': u'dk980241', 'block_word': 0, 'avatargj_id': u'gj_vip_011', 'star': 0, 'description': u'\u4e2a\u4eba\u5e10\u53f7\uff0c\u53d1\u8868\u4e2a\u4eba\u8a00\u8bba\uff0c\u89c2\u70b9\u504f\u6fc0\uff0c\u770b\u4e0d\u60ef\u7684\u8bf7\u7ed5\u9053\uff0c\u6709\u55b7\u5fc5\u56de\u3002', 'verified_contact_email': u'', 'online_status': 0, 'mbrank': 1, 'verified_level': 3, 'profile_image_url': u'http://tvax2.sinaimg.cn/crop.54.56.967.967.50/6e22c677ly8fdo0myg0xbj20sg0sg1l0.jpg', 'idstr': u'1847772791', 'following': False, 'verified_contact_mobile': u'', 'allow_all_act_msg': False, 'screen_name': u'\u4e0d\u6562\u9884\u8a00\u7684\u9884\u8a00\u5bb6', 'vclub_member': 0, 'allow_all_comment': False, 'geo_enabled': True, 'class': 1, 'name': u'\u4e0d\u6562\u9884\u8a00\u7684\u9884\u8a00\u5bb6', 'lang': u'zh-cn', 'weihao': u'', 'remark': u'', 'favourites_count': 243, 'like': False, 'url': u'http://blog.sina.com/dkxiaoyi', 'province': u'37', 'created_at': u'Fri Nov 05 00:22:19 +0800 2010', 'verified_contact_name': u'', 'user_ability': 0, 'story_read_state': -1, 'verified_type': 0, 'gender': u'm', 'like_me': False, 'pagefriends_count': 11, 'urank': 38}, 'hot_weibo_tags': [], 'geo': None, 'isLongText': False, 'page_type': 32, 'can_edit': False, 'gif_ids': u'', 'userType': 0, 'hasActionTypeCard': 0, 'is_paid': False, 'biz_feature': 4294967300L, 'source_type': 1, 'comments_count': 0, 'is_show_bulletin': 2, 'textLength': 86}, {'reposts_count': 0, 'mlevel': 0, 'truncated': False, 'text': u'#\u9634\u9633\u5e08\u624b\u6e38# \u4e00\u6ce2\uff0c \u4e09\u5341\u8fde\uff0c\u597d\u7edd\u671b\uff0c\u9152\u541e\u548c\u82b1\u9e1f\u4ec0\u4e48\u65f6\u5019\u624d\u80fd\u5230\u7897\u91cc\u6765 \u200b', 'more_info_type': 0, 'content_auth': 0, 'visible': {'type': 0, 'list_id': 0}, 'in_reply_to_status_id': u'', 'bmiddle_pic': u'http://wx3.sinaimg.cn/bmiddle/6e22c677ly1fnb9f9n62ij20j60asacn.jpg', 'original_pic': u'http://wx3.sinaimg.cn/large/6e22c677ly1fnb9f9n62ij20j60asacn.jpg', 'id': 4194575264422557L, 'thumbnail_pic': u'http://wx3.sinaimg.cn/thumbnail/6e22c677ly1fnb9f9n62ij20j60asacn.jpg', 'mblog_vip_type': 0, 'mid': u'4194575264422557', 'source': u'<a href="http://app.weibo.com/t/feed/6vtZb0" rel="nofollow">\u5fae\u535a weibo.com</a>', 'attitudes_count': 0, 'in_reply_to_screen_name': u'', 'in_reply_to_user_id': u'', 'created_at': u'Wed Jan 10 09:35:37 +0800 2018', 'positive_recom_flag': 0, 'pic_urls': [{'thumbnail_pic': u'http://wx3.sinaimg.cn/thumbnail/6e22c677ly1fnb9f9n62ij20j60asacn.jpg'}, {'thumbnail_pic': u'http://wx4.sinaimg.cn/thumbnail/6e22c677ly1fnb9fae0f6j20j60as76y.jpg'}, {'thumbnail_pic': u'http://wx3.sinaimg.cn/thumbnail/6e22c677ly1fnb9fbxixkj20j60asju2.jpg'}], 'darwin_tags': [], 'favorited': False, 'text_tag_tips': [], 'source_allowclick': 0, 'pending_approval_count': 0, 'idstr': u'4194575264422557', 'comment_manage_info': {'comment_permission_type': 3, 'approval_comment_type': 0, 'comment_manage_button': 1}, 'user': {'bi_followers_count': 222, 'domain': u'dk980241', 'avatar_large': u'http://tvax2.sinaimg.cn/crop.54.56.967.967.180/6e22c677ly8fdo0myg0xbj20sg0sg1l0.jpg', 'cardid': u'star_005', 'verified_source': u'', 'ptype': 0, 'avatar_hd': u'http://tvax2.sinaimg.cn/crop.54.56.967.967.1024/6e22c677ly8fdo0myg0xbj20sg0sg1l0.jpg', 'cover_image_phone': u'http://ww2.sinaimg.cn/crop.0.0.640.640.640/a1d3feabjw1ecassls6b2j20hs0hsq50.jpg', 'statuses_count': 10743, 'id': 1847772791, 'verified_reason_url': u'', 'city': u'6', 'verified': True, 'friends_count': 656, 'verified_reason_modified': u'', 'credit_score': 80, 'insecurity': {'sexual_content': False}, 'block_app': 0, 'follow_me': False, 'has_service_tel': False, 'verified_reason': u'\u524d \u6dc4\u535a\u8e6d\u4e00\u8e6d\u4fe1\u606f\u6280\u672f\u6709\u9650\u516c\u53f8 \u7f51\u7edc\u5de5\u7a0b\u5e08', 'verified_type_ext': 0, 'location': u'\u5c71\u4e1c \u70df\u53f0', 'followers_count': 9669, 'verified_state': 0, 'verified_trade': u'1994', 'mbtype': 2, 'verified_source_url': u'', 'profile_url': u'dk980241', 'block_word': 0, 'avatargj_id': u'gj_vip_011', 'star': 0, 'description': u'\u4e2a\u4eba\u5e10\u53f7\uff0c\u53d1\u8868\u4e2a\u4eba\u8a00\u8bba\uff0c\u89c2\u70b9\u504f\u6fc0\uff0c\u770b\u4e0d\u60ef\u7684\u8bf7\u7ed5\u9053\uff0c\u6709\u55b7\u5fc5\u56de\u3002', 'verified_contact_email': u'', 'online_status': 0, 'mbrank': 1, 'verified_level': 3, 'profile_image_url': u'http://tvax2.sinaimg.cn/crop.54.56.967.967.50/6e22c677ly8fdo0myg0xbj20sg0sg1l0.jpg', 'idstr': u'1847772791', 'following': False, 'verified_contact_mobile': u'', 'allow_all_act_msg': False, 'screen_name': u'\u4e0d\u6562\u9884\u8a00\u7684\u9884\u8a00\u5bb6', 'vclub_member': 0, 'allow_all_comment': False, 'geo_enabled': True, 'class': 1, 'name': u'\u4e0d\u6562\u9884\u8a00\u7684\u9884\u8a00\u5bb6', 'lang': u'zh-cn', 'weihao': u'', 'remark': u'', 'favourites_count': 243, 'like': False, 'url': u'http://blog.sina.com/dkxiaoyi', 'province': u'37', 'created_at': u'Fri Nov 05 00:22:19 +0800 2010', 'verified_contact_name': u'', 'user_ability': 0, 'story_read_state': -1, 'verified_type': 0, 'gender': u'm', 'like_me': False, 'pagefriends_count': 11, 'urank': 38}, 'hot_weibo_tags': [], 'geo': None, 'isLongText': False, 'page_type': 32, 'can_edit': False, 'gif_ids': u'', 'userType': 0, 'hasActionTypeCard': 0, 'is_paid': False, 'biz_feature': 0, 'source_type': 1, 'comments_count': 0, 'is_show_bulletin': 2, 'textLength': 66}, {'reposts_count': 0, 'mlevel': 0, 'truncated': False, 'text': u'#\u51b3\u6218!\u5e73\u5b89\u4eac#\u9080\u8bf7\u7801 \u200b', 'more_info_type': 0, 'content_auth': 0, 'visible': {'type': 0, 'list_id': 0}, 'in_reply_to_status_id': u'', 'bmiddle_pic': u'http://wx3.sinaimg.cn/bmiddle/6e22c677ly1fnas87uefgj21be0qowjd.jpg', 'original_pic': u'http://wx3.sinaimg.cn/large/6e22c677ly1fnas87uefgj21be0qowjd.jpg', 'id': 4194425524034817L, 'thumbnail_pic': u'http://wx3.sinaimg.cn/thumbnail/6e22c677ly1fnas87uefgj21be0qowjd.jpg', 'mblog_vip_type': 0, 'mid': u'4194425524034817', 'source': u'<a href="http://app.weibo.com/t/feed/47tA0S" rel="nofollow">OnePlus 3T</a>', 'attitudes_count': 0, 'in_reply_to_screen_name': u'', 'pic_urls': [{'thumbnail_pic': u'http://wx3.sinaimg.cn/thumbnail/6e22c677ly1fnas87uefgj21be0qowjd.jpg'}], 'created_at': u'Tue Jan 09 23:40:35 +0800 2018', 'positive_recom_flag': 0, 'annotations': [{'client_mblogid': u'11e018a5-d89a-4190-a3d9-6256c8aac6ca'}, {'mapi_request': True}], 'in_reply_to_user_id': u'', 'darwin_tags': [], 'favorited': False, 'text_tag_tips': [], 'source_allowclick': 0, 'pending_approval_count': 0, 'idstr': u'4194425524034817', 'comment_manage_info': {'comment_permission_type': 3, 'approval_comment_type': 0, 'comment_manage_button': 1}, 'user': {'bi_followers_count': 222, 'domain': u'dk980241', 'avatar_large': u'http://tvax2.sinaimg.cn/crop.54.56.967.967.180/6e22c677ly8fdo0myg0xbj20sg0sg1l0.jpg', 'cardid': u'star_005', 'verified_source': u'', 'ptype': 0, 'avatar_hd': u'http://tvax2.sinaimg.cn/crop.54.56.967.967.1024/6e22c677ly8fdo0myg0xbj20sg0sg1l0.jpg', 'cover_image_phone': u'http://ww2.sinaimg.cn/crop.0.0.640.640.640/a1d3feabjw1ecassls6b2j20hs0hsq50.jpg', 'statuses_count': 10743, 'id': 1847772791, 'verified_reason_url': u'', 'city': u'6', 'verified': True, 'friends_count': 656, 'verified_reason_modified': u'', 'credit_score': 80, 'insecurity': {'sexual_content': False}, 'block_app': 0, 'follow_me': False, 'has_service_tel': False, 'verified_reason': u'\u524d \u6dc4\u535a\u8e6d\u4e00\u8e6d\u4fe1\u606f\u6280\u672f\u6709\u9650\u516c\u53f8 \u7f51\u7edc\u5de5\u7a0b\u5e08', 'verified_type_ext': 0, 'location': u'\u5c71\u4e1c \u70df\u53f0', 'followers_count': 9669, 'verified_state': 0, 'verified_trade': u'1994', 'mbtype': 2, 'verified_source_url': u'', 'profile_url': u'dk980241', 'block_word': 0, 'avatargj_id': u'gj_vip_011', 'star': 0, 'description': u'\u4e2a\u4eba\u5e10\u53f7\uff0c\u53d1\u8868\u4e2a\u4eba\u8a00\u8bba\uff0c\u89c2\u70b9\u504f\u6fc0\uff0c\u770b\u4e0d\u60ef\u7684\u8bf7\u7ed5\u9053\uff0c\u6709\u55b7\u5fc5\u56de\u3002', 'verified_contact_email': u'', 'online_status': 0, 'mbrank': 1, 'verified_level': 3, 'profile_image_url': u'http://tvax2.sinaimg.cn/crop.54.56.967.967.50/6e22c677ly8fdo0myg0xbj20sg0sg1l0.jpg', 'idstr': u'1847772791', 'following': False, 'verified_contact_mobile': u'', 'allow_all_act_msg': False, 'screen_name': u'\u4e0d\u6562\u9884\u8a00\u7684\u9884\u8a00\u5bb6', 'vclub_member': 0, 'allow_all_comment': False, 'geo_enabled': True, 'class': 1, 'name': u'\u4e0d\u6562\u9884\u8a00\u7684\u9884\u8a00\u5bb6', 'lang': u'zh-cn', 'weihao': u'', 'remark': u'', 'favourites_count': 243, 'like': False, 'url': u'http://blog.sina.com/dkxiaoyi', 'province': u'37', 'created_at': u'Fri Nov 05 00:22:19 +0800 2010', 'verified_contact_name': u'', 'user_ability': 0, 'story_read_state': -1, 'verified_type': 0, 'gender': u'm', 'like_me': False, 'pagefriends_count': 11, 'urank': 38}, 'hot_weibo_tags': [], 'geo': None, 'isLongText': False, 'page_type': 32, 'can_edit': False, 'gif_ids': u'', 'userType': 0, 'hasActionTypeCard': 0, 'is_paid': False, 'biz_feature': 4294967300L, 'source_type': 1, 'comments_count': 0, 'is_show_bulletin': 2, 'textLength': 19}]}
    '''
    strr = strr.replace('\'', '\"')
    print strr


if __name__ == '__main__':
    t21()
